<!doctype html>
<html>
	<head>
	<title> new document </title>
		<meta charset="utf-8">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=7">
		<meta name="description" content="" />
		<meta name="keywords" content="" />
		<base target=_blank></base>
		<script src="../../apps/core_dom_xvideo.js"></script>
		<script src="../twitter/tweet.h.js"></script>
		<script src="marmot.js"></script>
	</head>

	<body>
	<button id="btn">Test</button>
	<button id="send">Send</button>
	<button id="log">Log Now</button>
	<script>
		var marmot = new QW.Marmot("marmot", {server:"abc"},{type:""});
		
		W("#btn").on("click", function(){
			marmot.open("test1");
			TweetH.tweet(this,'marmot',{id:'test1',action:{n:'press button'}});
		});
		W("#send").on("click", function(){
			marmot.close("test1");
			//marmot.closeAll();
			marmot.send();
		});

		W("#log").on("click", function(){
			//marmot.open("log");
			//TweetH.tweet(this,'marmot',{id:'log',action:{abc:"data"}});
			//marmot.close("log");
			//marmot.send(true);
			marmot.log({abc:"data",test:"a"});
		});
	</script>

	</body>
</html>

